-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework inline play behaviour #13023
Rework inline play behaviour #13023
Conversation
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
Size Change: +3 B (0%) Total Size: 942 kB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Straightforward refactor, name is more intuitive to me so 👍
@@ -20,7 +20,7 @@ const cardProps: CardProps = { | |||
}, | |||
imagePositionOnDesktop: 'top', | |||
isExternalLink: false, | |||
isPlayableMediaCard: false, | |||
canPlayInline: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just a story so not super important, but was this meant to be changed to true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, feature cards should play inline 👍
Seen on PROD (merged by @abeddow91 8 minutes and 47 seconds ago) Please check your changes! |
What does this change?
Renames
isPlayableMediaCard
->canPlayInline
and sets the value of this on beta containers.Why?
Editorial can decide what stories have a video displaying on the front. However, design do not want cards that are smaller than 300px to play inline which is the size at which the youtube player stops showing controls . This prop controls video playback functionality at the card level.